import { axios } from '@/utils/request'

/**
 * 查询数据点仓库
 *
 * @author cdx
 * @date 2022-10-19 11:25:34
 */
export function pointRepositoryPage (parameter) {
  return axios({
    url: '/pointRepository/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 数据点仓库列表
 *
 * @author cdx
 * @date 2022-10-19 11:25:34
 */
export function pointRepositoryList (parameter) {
  return axios({
    url: '/pointRepository/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加数据点仓库
 *
 * @author cdx
 * @date 2022-10-19 11:25:34
 */
export function pointRepositoryAdd (parameter) {
  return axios({
    url: '/pointRepository/add',
    method: 'post',
    data: parameter
  })
}

export function excelImport (parameter) {
  return axios({
    url: '/pointRepository/excelImport',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑数据点仓库
 *
 * @author cdx
 * @date 2022-10-19 11:25:34
 */
export function pointRepositoryEdit (parameter) {
  return axios({
    url: '/pointRepository/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除数据点仓库
 *
 * @author cdx
 * @date 2022-10-19 11:25:34
 */
export function pointRepositoryDelete (parameter) {
  return axios({
    url: '/pointRepository/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出数据点仓库
 *
 * @author cdx
 * @date 2022-10-19 11:25:34
 */
export function pointRepositoryExport (parameter) {
  return axios({
    url: '/pointRepository/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
